package photo3;
//子类继承父类帮助父类进行初始化，调用super进行初始化。
public class Test {
    public static void main(String[] args) {
      Cat2 cat2= new Cat2("小汪",3);
      Dog2 dog2= new Dog2("小黄",9);
    cat2.bark();
    dog2.bark();

    }
}
